/*
 * protocolparse.h
 *
 *  Created on: 2012-6-29
 *      Author: epmm
 */

#ifndef PROTOCOLPARSE_H_
#define PROTOCOLPARSE_H_



class CProtocolParse
{
public:
	static int PROTOCOL_SOCKET_STRING;
public:
	CProtocolParse();
	virtual ~CProtocolParse();

 	int doParse(int domin,const string& strInParam,CTagset& outParam);
	int doParse(int domin,CTagset& inParam, string& strOutParam);
	int doCheck(int domin,const string& strInParam);


private:
	int doSocketCheck(const string& strInParam);

public:
	int isNumber(const string& strInParam);

	void trim_left(string& str);

	void trim_right(string& str);

};

#endif /* PROTOCOLPARSE_H_ */
